package com.jsj.dao;

import com.jsj.domain.Submission;
import com.jsj.domain.vo.ProblemSubmissionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SubmissionDao {
    public List<ProblemSubmissionVo> querySubmissionByProblemId(@Param("topicId") int topicId, @Param("problemId") int problemId);

    public Submission querySubmission(long id);

    public List<Submission> querySubmissionBySubTopId(int subtopId);

    public Integer insertSubmission(Submission submission);

    public Integer deleteSubmission(long id);

    public Integer deleteSubmissionBySubTopId(int subtopId);
}
